<?php

namespace lemon\module\controllers;

use Yii;
use lemon\models\traits\ModelTrait;
use lemon\bootstrap4\AdminController;
use backend\modules\cms\models\HelpSiteEntity;
use backend\modules\cms\services\HelperService;
use backend\modules\cms\models\HelpSite;
use backend\modules\cms\models\HelpSiteQuery;

/**
 * 
 * kenny 2023-01-02
 *
 */
class UpController extends AdminController
{
	use ModelTrait;
	public function actions(){
		return [
			'ueditor' => [
				'class' => 'lemon\widgets\ueditor\UeditorAction',
				'config' => [
					"imageUrlPrefix" => "",//图片访问路径前缀
					"imagePathFormat" => "/ue/{yyyy}/{mm}/{time}{rand:6}", //上传保存路径
					//"imageRoot" => Yii::$app->params['FILE_PHYSICAL_PATH'],
				],
			]
		];
	}
}
